
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
    <Source>
        <Name>skey</Name>
        <Homepage>http://www.openbsd.org/faq/faq8.html#SKey</Homepage>
        <Packager>
            <Name>PisiLinux Community</Name>
            <Email>admins@pisilinux.org</Email>
        </Packager>
        <License>BSD</License>
        <IsA>app:console</IsA>
        <IsA>library</IsA>
        <Summary>Linux Port of OpenBSD Single-key Password System</Summary>
        <Description>skey is an S/Key implementation ported from OpenBSD. S/Key provides One Time Password functionality, and can be used to increase system security.</Description>
        <Archive sha1sum="d55fb286098900cdf3eb6b174a720a06c722312a" type="tarbz2">http://source.pisilinux.org/1.0/skey-1.1.5.tar.bz2</Archive>
        <BuildDependencies>
            <Dependency>cracklib-devel</Dependency>
            <Dependency>zlib-devel</Dependency>
            <Dependency>perl</Dependency>
        </BuildDependencies>
        <Patches>
            <!-- Backports from NETBSD, shadow cracklib support etc. -->
            <Patch level="1">skey-1.1.5-gentoo.diff</Patch>

            <!-- Glibc does not define LOGIN_NAME_MAX -->
            <Patch level="1">skey-login_name_max.diff</Patch>

            <!-- Build enhancements -->
            <Patch>skey-1.1.5-fPIC.patch</Patch>
            <Patch>skey-1.1.5-bind-now.patch</Patch>

            <!-- Allow invokation as otp-foo -->
            <Patch level="1">skey-1.1.5-otp.diff</Patch>

            <!-- Fix binary search -->
            <Patch level="1">skey-1.1.5-binary-search.patch</Patch>

            <!-- sed -i -e 's:/etc/skeykeys:/etc/skey/skeykeys:g' skeyprune.pl skeyprune.8 -->
            <Patch level="1">confdir.patch</Patch>

            <!-- Make sure to use case insensitive check for zeroed entries
                 sed -i -e 's:\(if ( ! /.*/\):\1i:g' skeyprune.pl -->
            <Patch level="1">zeroed_entries.patch</Patch>

            <!-- sed -i 's#\(md4\) \((the default)\), \(md5\) or \(sha1.\)#\1, \3 \2 or \4#g' skeyinit.1 -->
            <Patch level="1">default_hash.patch</Patch>

            <!-- sed -i 's:/usr\(/lib/libskey.so\):\1:;/It.*libskey_p/{N;d;}' skey.3 -->
            <Patch level="1">fix_library_info.patch</Patch>
        </Patches>
    </Source>

    <Package>
        <Name>skey</Name>
        <RuntimeDependencies>
            <Dependency>cracklib</Dependency>
            <Dependency>zlib</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="config">/etc/skey</Path>
            <Path fileType="library">/lib</Path>
            <Path fileType="executable">/usr/bin</Path>
            <Path fileType="library">/usr/lib</Path>
            <Path fileType="executable">/usr/sbin</Path>
            <Path fileType="doc">/usr/share/doc/skey</Path>
            <Path fileType="man">/usr/share/man</Path>
        </Files>
    </Package>

    <Package>
        <Name>skey-devel</Name>
        <PartOf>system.devel</PartOf>
        <Summary>Development files for skey</Summary>
        <RuntimeDependencies>
            <Dependency release="current">skey</Dependency>
        </RuntimeDependencies>
        <Files>
            <Path fileType="header">/usr/include</Path>
            <Path fileType="man">/usr/share/man/man3</Path>
        </Files>
    </Package>

    <History>
        <Update release="1">
            <Date>2014-05-21</Date>
            <Version>1.1.5</Version>
            <Comment>First release</Comment>
            <Name>Ertuğrul Erata</Name>
            <Email>ertugrulerata@gmail.com</Email>
        </Update>
    </History>
</PISI>
